import request from "@/utils/request";

/**
 * 发送邮件
 */
export const sendEmail = (data) => request({
    url:'/mail/send',
    method: "post",
    data
})

/**
 * 用户注册
 */
export const registerUser = (data) => request({
    url:'/personalUser/register',
    method: "post",
    data
})

/**
 * 获取用户信息
 */
export const getUserInfo = () => request({
    url:'/personalUser/getUserInfo',
})

/**
 * 用户登录
 */
export const loginUser = (data) => request({
    url:'/personalUser/login',
    method: "post",
    data
})
